package com.jihui.enterprise.server;

import com.jihui.enterprise.dao.EnterpriseDao;
import com.jihui.enterprise.model.EnterpriseManager;
import com.jihui.enterprise.model.JihuiEnterprise;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * ${DESCRIPTION}
 *
 * @author 王进
 * @since 2017-06-01 21:12
 **/
@RestController
@Component("enterpriseManager")
public class EnterpriseManagerImpl implements EnterpriseManager{
    @Autowired
    private EnterpriseDao enterpriseDao;


    @Override
    public void save(JihuiEnterprise jihuiEnterprise) {
        enterpriseDao.save(jihuiEnterprise);
    }
}
